package com.four.collage.dao;

import com.four.collage.entity.Groupmember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.four.collage.service.IGroupmemberService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-12-18
 */
public interface GroupmemberMapper extends BaseMapper<Groupmember> {

    /**
     * 添加拼单人员
     * @param groupmember
     */
    void addGropMember(@Param("gmen") Groupmember groupmember);

    /**
     * 根据拼团管理id查询拼团人员记录表
     * @param groId
     * @return
     */
    List<Groupmember> getGroupmemberByGroId(@Param("groId") Integer groId);
}
